package com.castle.fortress.admin.oa.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import java.util.Date;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
 * 假期类型 实体类
 *
 * @author whc
 * @since 2022-11-03
 */
@Data
@ApiModel(value = "holidayType对象", description = "假期类型")
public class HolidayTypeDto implements Serializable {
	private static final long serialVersionUID = 1L;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "ID")
	@JsonProperty("id")
	private Long id;
	@ApiModelProperty(value = "名称")
	@JsonProperty("name")
	private String name;
	@ApiModelProperty(value = "请假单位")
	@JsonProperty("unit")
	private Integer unit;
	@ApiModelProperty(value = "单位换算")
	@JsonProperty("hour")
	private Integer hour;
	@ApiModelProperty(value = "时长计算")
	@JsonProperty("calculate")
	private Integer calculate;
	@ApiModelProperty(value = "是否限额")
	@JsonProperty("isLimit")
	private Integer isLimit;
	@ApiModelProperty(value = "发放方式")
	@JsonProperty("giveMethod")
	private Integer giveMethod;
	@ApiModelProperty(value = "发放月份")
	@JsonProperty("giveMonth")
	private Integer giveMonth;
	@ApiModelProperty(value = "发放日")
	@JsonProperty("giveDay")
	private Integer giveDay;
	@ApiModelProperty(value = "发放天数")
	@JsonProperty("amount")
	private Integer amount;
	@ApiModelProperty(value = "假期失效单位")
	@JsonProperty("invalidUnit")
	private Integer invalidUnit;
	@ApiModelProperty(value = "状态")
	@JsonProperty("status")
	private Integer status;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "创建人")
	@JsonProperty("createUser")
	private Long createUser;
	@DateTimeFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@JsonFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@ApiModelProperty(value = "创建时间")
	@JsonProperty("createTime")
	private Date createTime;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "更新人")
	@JsonProperty("updateUser")
	private Long updateUser;
	@DateTimeFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@JsonFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@ApiModelProperty(value = "更新时间")
	@JsonProperty("updateTime")
	private Date updateTime;
	@ApiModelProperty(value = "是否删除")
	@JsonProperty("isDeleted")
	private Integer isDeleted;
	@ApiModelProperty(value = "创建者姓名")
	@JsonProperty("createUserName")
	private String createUserName;

}
